5. processing and sorting machine generic device integration 5

上一个视频我们设法使用通用设备乘坐电梯实施,现在我们将继续前往钻井站。
The last videos we managed to ride to the elevator implementation with the generic device, now we will move on to the drilling station.

到目前为止,钻孔站,我们实际上有三个设备,钻头运动和钻头激活和空气激活。
So far, the drilling station, we actually have three devices, the drill movement and the drill activation and the air activation.

那么让我们开始研究一下吧。
So let's start looking into it.

让我们进入我们的钻井站。
Let's go into our drilling station.

让我们开始实现我们的通用设备,所以从我们的状态零开始,想法,也删除它,并且,好吧,我们将保留我们在此处设置的钻孔计时器。
And let's start implementing our generic devices, so starting from our state zero, the thought, remove this, too, and, well, we shall leave the drilling timer we set here.

在这里,正如我们对所有其他站所做的那样,当我们接受需要的电梯时,我们为该站的所有通用设备添加了等于 true 的已启用通用设备。
And here, as we did for all the others, um, for all the other stations, when we accept the elevator that needs is an acknowledgement here, we added the enabled generic device equal to true for all our generic devices of the station.

因此,这里不是零,我们应该启用所有通用设备,以便真实的移动设备应等于有形通用设备,也应等于真实的激活设备。
So instead zero here, we should enable all of our generic devices so that the real movement device shall be equal with the tangible generic device shall be equal to true the real activation device as well.

以及亚洲人的继承人。
And the heir to Asian.

通用设备通过。
A generic device through.

这里我们应该确保真正的激活和ER激活实际上都没有运行,因此设备必须处于禁用状态。
And here we should make sure that both the real activation and the ER activation are actually not running so that the device must be in a disabled state.

所以我们将有一个真正的驱动装置,具有副指挥官的启动装置。
So we will have a real actuation that had the activation device that the vice commander.

设置为力和空气激活装置,该装置来并等于力,然后在这里我们得到我们正在向上移动钻头的声明。
Set to force and the air activation device, that device come and equal the force, then here we get the statement in which we are moving the drill up.

为此,我们删除了这一部分。
And in order to do so, we remove this part.

你会编写真正的运动设备吗?该设备来并将其设置通过,以便查看我们是否到达了抱歉的格栅顶部,这是错误的,因为我们在这里使用此约定。
Will you write the real movement device, that device come and set it through and in order to see if we reached the top of the sorry grill up is false because we use this convention here.

我们决定启用设备移动意味着底端的钻机禁用意味着钻机位于顶部。
We decided to have the the movement with device enabled means that the drillers at the bottom end device disabled means that the drill is at the top.

好的,让我们回到钻井站。
OK, so let's get back to the drilling station.

所以我们需要禁用该设备并等待它被禁用。
So we need to disable the device and wait for it to be disabled.

所以真正的运动装置,那个装置St..
So the real movement device, that device St..

应该检查它是否等于禁用,如果是,我们不再需要这些线,就像我们不需要电梯一样,然后我们保持 20,这意味着钻头已经开始。
Should be checked if it is equal to disabled, if it is, we no longer need these lines in a similar way as we didn't need them for the elevator, then we get to stay 20, which means that the drill is up.

如果一个产品是一个电台,我们可以去,比如,30。
If a product is an station, we can go to, say, 30.

在这里,我们实际上应该将此操作分为我们需要在这里写一个州,一个 25 个州,25 年。
And here we should actually split this action into we will need let's write here a state, a 25 state, 25 year.

所以首先我们需要开始演练。
So first we need to start the drill.

然后我们需要向下移动钻取。
Then we need to move the drill down.

所以在这里我们实际上会有 dwil 激活设备,设备来设置真相,我们将等到设备启用,因为我们没有反馈。
So here we will actually have dwil activation device, the device come and set the truth and we will wait until the device is enabled since we do not have a feedback.

这实际上会在计时器结束时发生。
This will actually occur at the end of the timer.

因此设备数据应该等于enable,以允许我们进入状态30而不是30。
So device data should be equal to enable to allow us to go to state 30 instead 30.

我们需要向下钻取,以便我们做类似的事情。
We need to move the drill down so we'll do something similar.

我们实际上可以复制这个并替换这个部件,我们将需要真正的移动装置而不是钻头激活装置。
We can actually copy this and replace this part and we will all at will need to have the real movement device instead of the drill activation device.

因此,这意味着我们在钻取开始后将其向下移动。
So this means that we move the drill down after it has started.

好的,那么当我们到达这里时,我们等待这个计时器,等待我们的操作,等待钻孔完成。
OK, so then when we get here, we wait for this timer, for our operation, to wait for the drilling to finish.

然后我们需要首先禁用钻头。
And then we need to first disable the drill.

因此,通过这种方式,我们将做一些与我们在这里所做的类似的事情。
So in this way, we will do something similar to what we did here.

因此,让我们创建一个中间集 45,在其中我们将停止练习,以便我们可以将我们所做的复制到 25,因为这是第 21 天。
So let's create an intermediate set, 45, in which we will stop the drill so we can copy what we do instead to 25, because it's day 21st.

这就是我们开始演习的地方。
It is the one we are where we are starting the drill here.

我们将停止演习。
We will stop the drill.

通过将命令设置为强制并等待设备被禁用,完成后,我们可以获得状态 50,我们将在其中移动钻头。
And by setting the command to force and waiting for the device to be disabled, when we have done that, we can get the state 50 where we will move the drill.

但您实际上可以复制我们用于向下钻取移动的代码并将其复制到此处。
But you can actually copy the code that we use for the drill movement down and copy this here.

我们需要设置设备,生效并等待绿色移动设备到设备状态被禁用。
We need to set the device, come into force and wait for the green movement device to device state to be disabled.

然后我们将得到状态60中的状态60。
Then we will get the state 60 in state 60.

我们将等待桌子准备好。
We will wait for the table to be ready.

这对我们来说效果很好。
And this works fine for us.

然后我们需要开始激活,这样我们就不再使用呃驱动飞镖,呃,驱动。
And then we need to start the activation so we will no longer use the er actuation dart, uh, actuation.

嗯,Mahboba,我们将使用该设备,因此我驱动设备,设备命令应设置为等于。
Um, Mahboba, we will use the device so I actuation device that um the device command should be set equal to.

真的。
True.

和。
And.

在这里,我们将等待设备打开,因此空调设备,该设备状态应该变为等于启用它们。
Here, we will wait for the device to be turned on, so air conditioned device, that device state should become equal to enable them.

之后,我们将前往这里的另一个州。
And after that, we will go to another state here.

抱歉,state 应该等于 18。
We need to sorry, state should become equal to 18.

在这里,我们正在激活空气驱动。
Here we are activating air actuation.

当我们到达状态80时,空气正在流动,所以当产品到达桌子时,我们在这里等待桌子上的产品。
When we get to state 80, the air is flowing, so here we wait for product on table when the product reaches the table.

我们需要到达 90 英尺的另一个状态,在该状态下我们将关闭空气激活。
We will need to go to another state 90 feet in which we will turn off the air activation.

因此,让我们复制状态 60 90,其中设备进入并且它们的驱动必须变为 false。
So let's copy the state 60 90 in which the device come and they are actuation must become false.

我们会等待残疾人。
We will wait for the disabled.

然后我们将回到20。
And then we will go back to the 20.

我们在其中等待。
In which we wait.

对于一个产品来说。
For a product to be here.

好的,这对我们有好处。
OK, this is good for us.

我认为。
I think.

让我们继续看一下紧急停止,所以再次,当我们按下紧急按钮时,我们想要禁用该设备,即通用设备,因此我们可以将这三行复制到此处,我们将在此处启用通用设备。
Let's move on and look at the emergency stopping, so again, when we pressed the emergency, we want to disable the device, the generic devices, so we can just copy these three lines over here where we are enabling the generic devices.

在这里,我们实际上将禁用它们,因此我将在所有三个设备的启用通用设备输入上编写“falls”。
And here we will actually disable them, so I will write falls on the enable generic device input for all three devices.

然后我们需要实际管理这种停止状态。
Then we need to actually manage this stopping state.

这里。
Here.

我们可以,我们需要照顾真实的。
We can we need to take care of the real.

嗯,在钻取位置之后,所以我们首先需要禁用它们的创建和钻取获取。
Um, after drill position, so we will first of all, we will need to both disable their creation and the, uh, drill acquisition.

因此,呃致动,该装置,该装置可以并且应该变得等于力,嗯,钻激活装置。
So er actuation, the device, that device can and should become equal to force, um, drill activation device.

该设备命令应等于强制。
That device command should be equal to force.

所以这意味着我们应该等待它们都被禁用。
And so it means that we should wait for both of them to be disabled.

所以我们的激活设备,该设备状态应该等于禁用和真正的激活设备。
So our activation device, that device state should be equal to disabled and real activation device.

状态,点设备状态。
State, dot device state.

也应该等于禁用,这符合您的要求,我们需要将钻头定位在顶部或底部传感器上,这意味着钻头必须禁用或启用,但不能禁用或启用。
Should be equal to disabled as well, and that's going on your line, we will need the drill to be positioned either on the top or on the bottom sensor, which means that the drill must be either disabled or enabled, but it cannot be disabling or enabling.

因此,请等待钻头移动设备,该设备状态等于禁用或等于启用,就像我们为电梯管理的方式一样。
So wait for drill movement device that device state to be equal to disabled or for it to be equal to enabled in the same way that we managed for the elevator.

让我们删除这个。
Let's remove this.

让我们看看整个过程的状态,看看我们是否处于某些状态,以及是否需要实际添加一些我们无法保持的状态。
Let's look at the states for the whole procedure and see maybe if we since we are in some states and if we need to actually add some states in which we cannot hold.

所以我们在这里,状态 30、40、50、70 和 10。
So here we are, state 30, 40, 50, 70 and 10.

所以这里的 25 对我们来说并不好,因为演习即将开始。
So here was 25 is not good for us because that drill is starting.

这。
The.

30 的。
30 the.

而45、45对我们来说并不好。
And 45, 45 are not good for us.

所以这里我们需要加上state一定不能是45。
So here we need to add the state must must not be 45.

嗯,我的意思是,也许 45 就可以了,因为我们要在这里停止演习,所以我想 45 就可以了。
Well, I mean, maybe 45 is OK because we are stopping the drill here, so I guess 45 is OK.

抱歉,嗯,25 肯定不是,因为我们要开始在那里钻探。
Sorry, um, 25 surely isn't because we are starting to drill there.

所以就在这里。
So that's right here.

而且这里的状态不等于25个人。
And the state not equal to 25 men here.

呃,抱歉,我在这里忘记了这句话,我会坚持看牙。
Uh, sorry, I forgot this line on line here, I'll stick to eyeteeth.

必须将其删除,因为我们不使用它。
This must be removed because we are not using that.

大多数州,70​​州和80州不会因为空气流动而被杀死,所以我们也需要避免国家援助。
Most states, 70 and state 80 are not killed because the air is flowing, so we also need to avoid state aid.

好的。
OK.

好的,看来我们已经解决了一切,让我们尝试看看它是否有效。
OK, so it seems that we have managed everything, let's try to see it work.

我们来进行下载。
Let's carry out to download.

好吧,有一些错误,我写的东西,呃,这里错了。
OK, there is some error, something that I wrote, uh, wrong here.

哦,对了,这不是放松,而是放松装置。
Oh, yes, this is not relaxation, but relaxation device.

这就是我错过的。
This is what I missed.

那么让我们上网并进行下载。
So let's go online and carry out the download.

开始吧。
Let's start.

让我们引入我们的可视化。
Let's bring in our visualisations.

让我们看看。
And let's see.

如果钻孔站工作正常。
If the drilling station works correctly.

正如我们现在所探讨的,产品的成本将会下降。
Products, as we drill now, that will cost down.

这。
This.

好吧,出了点问题,我们停下来吧,因为钻头卡在这里了。
OK, something is wrong, let's stop because the drill is stuck here.

让我们看看发生了什么,也许是关于计时器的事情,因为。
Let's see what was happening, maybe something regarding the timer, because.

哦,州,哦,是的,从 30 号州到 30 号州际公路,所以它永远不会到达 40 号州。
Oh, state, oh, yeah, state to 30 goes Interstate 30, so it never gets the state 40.

那么我们将这 30 替换为 40。
So let's replace this 30 to 40.

我们可以再做一次,改变重要的事情,然后再试一次。
We can carry out another and change for what matters and try again.

好的,让我们打开可视化。
OK, let's open the visualisations.

是的,这是他们的。
And yeah, it was their.

大多数米尔萨普,让我们看看。
Most Millsap, let's see.

好的,这看起来效果很好。
OK, that will seems to work fine.

让我们看看它们的空气也是如此。
Let's look at the air they are does as well.

让我们看看,好吧,现在我们停下来,因为产品没有离开钻孔站。
Let's see, OK, right now we stopped because the product didn't leave the drilling station.

因此,让我们尝试唯一可以尝试的其他事情,那就是紧急按钮。
So let's try the only other thing that we can try that is the emergency button.

然后我们就可以出发了,我们努力为这本书编写代码,让我们尝试一下这里的紧急情况并工作,让我们删除它并在轰炸期间看到它回来。
And then we should be good to go and we work to write the code for the book, let's try the emergency here and worked, let's remove it and see it back during the bombing.

好的,这很好。
OK, this is good.

我们将。
We will.

下一个视频我们将在这个桌子上进行。
The next video we will carry out to the, um, this the table.

我们将用通用设备调整桌子,然后我们将尝试所有我们尚未尝试的事情,即停止按钮和整个底部。
We will right the table with the generic devices and then we will try all the things that we didn't try yet, meaning the stop buttons and the whole the bottom.